<?php

namespace app\controller;

use think\facade\Db;
use think\annotation\route;
use think\response\Json;

class BookTypeController
{
    /**
     * @route ("getAllBookTypes")
     * @return Json
     */
    public function getAllBookTypes(): Json
    {
        return json(Db::table("图书类型")->select());

    }
}